package com.sky.service;

import com.sky.dto.*;
import com.sky.result.PageResult;
import com.sky.vo.OrderPaymentVO;
import com.sky.vo.OrderStatisticsVO;
import com.sky.vo.OrderSubmitVO;
import com.sky.vo.OrderVO;

import java.util.List;


public interface OrderService {

    OrderSubmitVO submit(OrdersSubmitDTO submitDTO);

    /**
     * 订单支付
     * @param ordersPaymentDTO
     * @return
     */
    OrderPaymentVO payment(OrdersPaymentDTO ordersPaymentDTO) throws Exception;

    /**
     * 个人信息不全，调不起微信支付
     * @param ordersPaymentDTO
     * @return
     */
    OrderPaymentVO payZero(OrdersPaymentDTO ordersPaymentDTO);

    /**
     * 支付成功，修改订单状态
     * @param outTradeNo
     */
    void paySuccess(String outTradeNo);

    void reminder(Long id);

    PageResult<OrderVO> historyOrders(int pageNum, int pageSize, Integer status);

    void repetition(Long id);

    OrderVO getOrderDetail(Long id);

    void cancel(Long id);

    void cancel(OrdersCancelDTO cancelDTO);

    PageResult<List<OrderVO>> conditionSearch(OrdersPageQueryDTO ordersPageQueryDTO);

    void confirm(OrdersConfirmDTO ordersConfirmDTO);

    void rejection(OrdersRejectionDTO ordersRejectionDTO);

    OrderStatisticsVO statistics();

    void complete(Long id);

    void delivery(Long id);
}
